package satir.command;

import satir.SatirGame;
import satir.framework.command.RegularCommand;
import satir.framework.command.State;

/**
 * The Class ViewBoard. This player command is to show the board again
 * @version 3.0 April 2012
 * @author Creative Family
 */
public class ViewBoardCmd implements RegularCommand {

    /** The satir game. */
    private SatirGame satirGame;

    /**
     * Instantiates a new view board cmd.
     * @param satirGame
     *            the satir game
     */
    public ViewBoardCmd(final SatirGame satirGame) {
	this.satirGame = satirGame;
    }

    /**
     * Execute to show board.
     */
    public void execute() {
	satirGame.getBoard().showBoard();
    }

    /**
     * Gets the instruction.
     * @return instruction
     */
    @Override
    public String getInstruction() {
	return "View Board";
    }

    /**
     * Execute to show board.
     * @param state
     *         the State object
     */
    @Override
    public void execute(final State state) {
	execute();
    }
}
